import request from '@/utils/request'

// 查询文件浏览列表
export function listVerb(query) {
    return request({
        url: '/business/verb/list',
        method: 'get',
        params: query
    })
}
//分组查询文件浏览列表
export function listGroupVerb(query){
    return request ({
        url:'/business/verb/listVerb',
        method:'get',
        params:query
    })
}
// 查询文件浏览列表
export function listVerbAll(query) {
    return request({
        url: '/business/verb/listAll',
        method: 'get',
        params: query
    })
}

// 查询文件浏览详细
export function getVerb(id) {
    return request({
        url: '/business/verb/' + id,
        method: 'get'
    })
}

// 新增文件浏览
export function addVerb(data) {
    return request({
        url: '/business/verb',
        method: 'post',
        data: data
    })
}

// 修改文件浏览
export function updateVerb(data) {
    return request({
        url: '/business/verb',
        method: 'put',
        data: data
    })
}

// 修改文件浏览
export function updateVerbStatus(data) {
    return request({
        url: '/business/verb/editStatus',
        method: 'put',
        data: data
    })
}
// 删除文件浏览
export function delVerb(id) {
    return request({
        url: '/business/verb/' + id,
        method: 'delete'
    })
}
